package com.thering.movie_servers.movies.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.thering.movie_servers.movies.pojo.MovieType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TypeMapper extends BaseMapper<MovieType> {

    @Select("select distinct type from sortByType limit 18")
    List<MovieType> getTypes();
}
